<%@page import="javax.tools.DocumentationTool.Location" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@page isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>fab后台管理系统</title>
    <%-- <script src="<%=basePath%>js/jquery-1.10.2.min.js" type="text/javascript"
        charset="utf-8"></script> --%>
    <!-- Bootstrap -->
    <link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- bootstrap-wysiwyg -->
    <!--  <link href="vendors/google-code-prettify/bin/prettify.min.css" rel="stylesheet"> -->

    <!-- Custom styling plus plugins -->
    <link href="build/css/custom.min.css" rel="stylesheet">
</head>
<%
    if (request.getSession().getAttribute("user") == null) {
        response.sendRedirect("login.jsp");
    }
    ;
%>
<frameset cols="300px,*" frameborder="1" border="0" bordercolor="#000FFF" framespacing="1">
    <frame src="left.jsp" name="leftFrame" id="leftFrame" title="leftFrame"/>
    <frameset rows="10,*" frameborder="1" border="0" framespacing="1">
        <frame src="top.jsp" name="topFrame" id="topFrame" title="topFrame"/>
        <frame src="main.jsp" name="rightFrame" id="rightFrame" title="rightFrame"/>
    </frameset>
</frameset>

<!-- 加载需要的js -->
<script src="js/jquery-3.2.1.min.js"></script>
<script src="plugin/layer/layer.js"></script>
<script type="text/javascript">
function sessionMonitoring(){
	if('${user}'==''){
		layer.alert('Session timeout, please log in again.', {
			  skin: 'layui-layer-molv' //样式类名
			  ,closeBtn: 0
			}, function(){
			  window.location.reload();
			});
	}
}
window.onload=function(){ 
	setInterval("sessionMonitoring();",1000);//10分钟执行一次
	} 

</script>
<!-- /compose -->
</html>